# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ncdu
pkgver=1.19
pkgrel=0
pkgdesc="Text-based disk usage viewer"
url="https://dev.yorhel.nl/ncdu"
options="!check" # no test suite
arch="all"
license="MIT"
makedepends="ncurses-dev linux-headers"
subpackages="$pkgname-doc"
source="https://dev.yorhel.nl/download/ncdu-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
2bbfe2bab101f92674e13bef5260a39b32c127a310ae59c045f3684aaa8dab6f767c0162dc8f868d8adfaa17d597d0b3d2c134fe97bbaf205da0f8272e96c5d6  ncdu-1.19.tar.gz
"
